@section('title')
	找律师 @parent
@show

@section('content')
{{ HTML::style('css/lawyer.css')}}
{{ HTML::script('js/lawyer/lvView.js')}}
{{ HTML::script('js/jquery.raty.js') }}
{{ HTML::script('js/question/limitTextarea.js') }}
{{ HTML::script('js/jquery.SuperSlide.2.1.1.js') }}
{{ HTML::script('js/jQuery-File-Upload-9.7.1/js/vendor/jquery.ui.widget.js') }}
{{ HTML::script('js/jQuery-File-Upload-9.7.1/js/jquery.iframe-transport.js') }}
{{ HTML::script('js/jQuery-File-Upload-9.7.1/js/jquery.fileupload.js') }}


<script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js" data-appid="101302496" data-redirecturi="http://www.elvtuan.com/qqlogin" charset="utf-8"></script>
<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=3443617967" type="text/javascript" charset="utf-8"></script>

<div class="userBanner">
	<div class="img"></div>
	<div class="lv-view-userImg"><img class="userImg" src="{{ $data['avatar'] }}" width="100" height="100" alt="头像" /></div>
</div>
<div class="container" style="z-index: 1;">
	<div class="left-lv-view">
		
		
		<div class="lv-info-type">
			<p class="userName">{{ $data['realname'] }}</p>
			<p class="font16 colorF" style="margin:15px 0;"><span class="icon5"></span><span>{{$data['province']}}{{$data['city']}} <span class="colorD">|</span> {{$data['company_name']}}</span></p>
			<p class="font16 colorF" style="margin:15px 0;">
				<span class="icon4"></span>
				@foreach ($data['work_scope'] as $key => $workscope) 
					<span>{{ $workscope['value'] }}</span> <span class="font12 line">|</span>
				@endforeach
			</p>
			<p class="font16"><span class="icon1"></span><span class="colorC">{{ $data['task_count'] }}</span> <span class="colorF">人咨询</span><span class="icon2"></span><span class="colorC">{{ $data['follower_count'] }}</span> <span class="colorF">人关注</span><span class="icon3"></span><span class="colorC">{{ $data['reward_count'] }}</span> <span class="colorF">人打赏</span></p>
			
		</div>
		<div class="font20 bold" style="margin-top: 20px;">关于律师</div>
		<div class="content1 lv-information">
			@if( $data['introduce'] || $data['experience'] || $data['law_cases'] )
				<p class="new-comment-content1">{{ $data['introduce'] }}</p>
				<p class="new-comment-content2">{{ $data['experience'] }}</p>
				<p class="new-comment-content3">{{ $data['law_cases'] }}</p>
			@else
				<p class="">未填写</p>
			@endif

		</div>
		<div class="view-content1 oh">
		<div class="titlebg"><div style="margin-left:20px;" class="font18 colorF">用户评价</div></div>
		<div style="padding:20px;">
			<div class="evaluate-but">
				<a class="colorF cua" href="javascript:void(0);" data-id="all">全部</a>
				<a href="javascript:void(0);" data-id="high"><span class="colorF">好评</span> <span class="colorD high">0</span></a>
				<a href="javascript:void(0);" data-id="intermediate"><span class="colorF">中评</span> <span class="colorD intermediate">0</span></a>
				<a href="javascript:void(0);" data-id="low"><span class="colorF">差评</span> <span class="colorD low">0</span></a>
			</div>
			<ul class="good-evaluate">
			</ul>
			<div class="butA load-more" style="display:none" data-id="1">加载更多</div>
		</div>

	</div>
	</div>
	<div class="right-lv-view">
		<div class="oh">
			<span class="font18 colorE fl" style="line-height:32px;">分享：</span>
			<a href="##" class="weixin fl"  alt="微信"></a>
			<a href="##" class="friend fl"  alt="朋友圈"></a>
			<a href="##" class="QQ fl"  alt="QQ"></a>
			<a href="##" class="QQZone fl"  alt="qq空间"></a>
		</div>
<div class="bdsharebuttonbox" style="margin-top: -38px;margin-left: 74px;filter:alpha(opacity=1);-moz-opacity:0.01; opacity:0.01;">
	<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
</div>
<div class="bdsharebuttonbox" style="margin-top: -45px;margin-left: 126px;filter:alpha(opacity=1);-moz-opacity:0.01; opacity:0.01;">
	<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信朋友圈"></a>
	<div style="width: 32px;height: 32px;overflow: hidden;display: inline-block;margin-top: 7px;margin-left: -90px;">
	<script type="text/javascript">
		(function(){
		var p = {
		url:location.href, /*获取URL，可加上来自分享到QQ标识，方便统计*/
		// url:"http://www.elvtuan.com/", /*获取URL，可加上来自分享到QQ标识，方便统计*/
		desc:'', /*分享理由(风格应模拟用户对话),支持多分享语随机展现（使用|分隔）*/
		title:'', /*分享标题(可选)*/
		summary:'', /*分享摘要(可选)*/
		pics:'', /*分享图片(可选)*/
		flash: '', /*视频地址(可选)*/
		site:'', /*分享来源(可选) 如：QQ分享*/
		style:'201',
		width:32,
		height:32
		};
		var s = [];
		for(var i in p){
		s.push(i + '=' + encodeURIComponent(p[i]||''));
		}
		document.write(['<a class="qcShareQQDiv" href="http://connect.qq.com/widget/shareqq/index.html?',s.join('&'),'" target="_blank">分享到QQ</a>'].join(''));
		})();
	</script>
	<script src="http://connect.qq.com/widget/loader/loader.js" widget="shareqq" charset="utf-8"></script>
	</div>
	<a href="#" class="bds_qzone" style="margin-left:66px;" data-cmd="qzone" title="分享到QQ空间"></a>
</div>

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"32"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
		<div class="service-but">立即预约</div>

		@if(Auth::check()) 
			@if( $data['is_following'] )
				<div class="unfollow" data-id="{{ $data['id'] }}">取消关注</div>
			@else
				<div class="follow-but" data-id="{{ $data['id'] }}">点击关注</div>
			@endif
		@else
			<div class="follow-but" data-id="{{ $data['id'] }}">点击关注</div>
		@endif

		<div class="view-content1 view-content2 oh">
			<div class="titlebg"><span style="margin-left:20px;" class="font18 colorF">发表文章</span><a href="{{ Route('news.list') }}" class="font14 colorF"  style="margin-left:160px;">更多<span  class="8">>></span></a></div>
			<div style="padding:0px 20px 0px;">
				<ul class="lv-article">
				</ul>
			</div>
		</div>
	</div>
  {{ Form::token() }}  
</div>
<div id="serviceDiv">
	<div class="service-list" >
		<div class="service-list-box">
			<div class="title2">选择服务项目</div>
			<ul>
				<li class="advisory1" data-id="pay_text">图文咨询 <span class="mun">{{$data['text_reply_fee']}}元/次</span></li>
				<li class="advisory1" data-id="pay_phone">电话咨询 <span class="mun">{{$data['phone_reply_fee']}}元/次</span></li>
				<!--<li class="advisory1" data-id="adviser1">企业法律顾问银卡 <span class="mun">8800元/年</span></li>
				<li class="advisory1" data-id="adviser2">企业法律顾问金卡 <span class="mun">18800元/年</span></li>
				<li class="advisory1" data-id="adviser3">企业法律顾问白金卡 <span class="mun">28800元/年</span></li>
				<li class="advisory1" data-id="adviser4">企业法律顾问砖石卡 <span class="mun">48800元/年</span></li>-->
			</ul>
		</div>
		
	</div>
</div>
<script type="text/javascript">
var company  = JSON.parse(localStorage.getItem("companyStore"));//localStorage获取出来
var adviserLi  = '';//localStorage获取出来
	for (var i=0;i<company.length;i++) {
		adviserLi  += '<li class="advisory1" data-id="adviser'+(i+1)+'">企业法律顾问'+company[i].title+' <span class="mun">'+company[i].price+'元/年</span></li>'
	}
	$("#serviceDiv ul").append(adviserLi)

$(function(){
     var element = $("p[class='new-comment-content1']");
     var temp =  element.text().replace(/\n/g,'<br/>');
     element.html(temp);
});
$(function(){
     var element = $("p[class='new-comment-content2']");
     var temp =  element.text().replace(/\n/g,'<br/>');
     element.html(temp);
});
$(function(){
     var element = $("p[class='new-comment-content3']");
     var temp =  element.text().replace(/\n/g,'<br/>');
     element.html(temp);
});
$(".lv-info-type .line").eq(2).css("display","none");
$(".icon-box").click(function(){
	var display = $(".service-list").css("display");
	if (display == "none") {
		$(".service-list").css("display","block");
	}else{
		$(".service-list").css("display","none");
	}
	
});
	var lvartivleShare_url = "{{ route('lawyer.workscopes') }}";
	var user_lawyer_url = "{{ route('lawyer.workscopes') }}";
	var jumpUrl = "{{ Config::get('app.url') }}";
	var user_id = "@if(Auth::user()) Auth::user()->id @endif";
	var islogin = "{{ Auth::check() }}";
	var single_lawyer_evaluation_url = "{{ route('lawyer.evaluations', array('id' => $data['id'])) }}";
	var token = $("input:[name='_token']").val();
	var orderUrl = "{{ route('lawyer.deals', array('id' => $data['id'])) }}";
	var id = "{{ $data['id'] }}";

</script>
@show